﻿using Marmat.Foundation;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 测试项目
{

    /// <summary>
    /// 加载用户配置文件
    /// </summary>
    class LoadUserSetting : ILoadUserSetting
    {
        private readonly IMainForm mainForm;
        public LoadUserSetting(IMainForm mainForm)
        {
            this.mainForm = mainForm;
            
        }

        public void Dispose()
        {
        }

        public void ExecuteCommand(string userName)
        {
            // 可在此处修改主窗体的信息
            mainForm.NickName = "测试用户";
        }
    }
}
